<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.util.List"%>
<%@ page import="bsea.jan21.User"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登陆成功</title>
</head>
<body>
<%
String name=(String)request.getAttribute("loginname");
List<User> userlist=new ArrayList();
userlist=(List)request.getAttribute("ulist");

%>
<h2>欢迎登陆<%= name%></h2>
<table>
<tr>
<th>用户名</th>
<th>密码</th>
</tr>
<%
for(int i=0;i<userlist.size();i++){
%>
<tr>
<td><%=userlist.get(i).getUserName() %></td>
<td><%=userlist.get(i).getPwd() %></td>
</tr>
<tr>

	
<%	
}

%>

</table>
</body>
</html>